import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../pages/Home.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../pages/Order.vue')
  },
  {
    path: '/send',
    name: 'Send',
    component: () => import('../pages/Send.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../pages/My.vue'),
    meta: {
      needlogin: true // 是否登录
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../pages/Login.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/reg',
    name: 'Reg',
    component: () => import('../pages/Reg.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/DETAIL',
    name: 'DETAIL',
    component: () => import('../pages/homein/DETAIL.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/Tdetail',
    name: 'Tdetail',
    component: () => import('../pages/homein/Tdetail.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/selcity',
    name: 'selcity',
    component: () => import('../pages/homein/selcity.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('../pages/test.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },

  {
    path: '/yonghuxieyi',
    name: 'yonghuxieyi',
    component: () => import('../pages/yonghuxieyi.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/yinsiquanxian',
    name: 'yinsiquanxian',
    component: () => import('../pages/yinsiquanxian.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/yanzhengmalogin',
    name: 'yanzhengmalogin',
    component: () => import('../pages/yanzhengmalogin.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/send-topic',
    name: 'send-topic',
    component: () => import('../pages/sendUrl/send-topic.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/send-adress',
    name: 'send-adress',
    component: () => import('../pages/sendUrl/send-adress.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/evaluatied',
    name: 'evaluatied',
    component: () => import('../pages/evaluatied.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/looked',
    name: 'looked',
    component: () => import('../pages/looked.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/cardbag',
    name: 'CardBag',
    component: () => import('../pages/CardBag.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },

  {
    path: '/pay',
    name: 'pay',
    component: () => import('../pages/homein/pay.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/send-adress',
    name: 'send-adress',
    component: () => import('../pages/sendUrl/send-adress.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/mydetail',
    name: 'mydetail',
    component: () => import('../pages/mydetail.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/cardbag',
    name: 'CardBag',
    component: () => import('../pages/CardBag.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/contribution',
    name: 'Contribution',
    component: () => import('../pages/contribution.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/setUp',
    name: 'SetUp',
    component: () => import('../pages/setUp.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/news',
    name: 'News',
    component: () => import('../pages/news.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  },
  {
    path: '/fabulous',
    name: 'Fabulous',
    component: () => import('../pages/fabulous.vue'),
    meta: {
      hideNav: true // 底部导航是否隐藏
    }
  }
]
// 创建路由
export default createRouter({
  routes,
  history: createWebHashHistory()
})
